#ifndef STUDENT_H
#define STUDENT_H

#include <QString>
#include <QList>


class Student
{
public:
    Student();
    Student(QString name,QString sno,QString sex,QString age,QString college,QList<QString> intrests);

    //getter和setter函数
    QString getName();
    QString getSno();
    QString getSex();
    QString getAge();
    QString getCollege();
    QList<QString> getIntrests();

    //setter
    void setName(QString name);
    void setSno(QString sno);
    void setSex(QString sex);
    void setAge(QString age);
    void setCollege(QString college);
    void setIntrests(QList<QString> intrests);

    //toString
    QString toString();

    static Student getStuFromString(QString content);

private:
    QString name;
    QString sno;
    QString sex;
    QString age;
    QString college;
    QList<QString> intrests;
};

#endif // STUDENT_H
